Skip to main content

Assertions

Assertions are rules that determine whether the case passes. Response rules are evaluated first, followed by request rules.

Preview of Assertions in Case Editor

Both response and request tables contain the following columns and fields:

  1. Source, the part that is evaluated. For example, STATUS.
  2. Path/Field, the path or field name.
  3. Operator, the comparison applied. For example, EQUALS.
  4. Expected, the expected value. It may contain variables.
  5. For Each, a toggle that applies the rule to each element of a matched array.
  6. On Fail, the behaviour when the rule fails. Stop ends the evaluation of the case. Continue evaluates the remaining rules.

Rules are added with Add Request Assertion and Add Response Assertion.

'Add Request Assertion' and 'Add Response Assertion' buttons in Assertions

Changes take place only after clicking on Save.

'Save' button in Assertion